#
# __init__.py
# Easy API - ui module.
#
# Copyright (C) 2007-2008 UFCG - Federal University of Campina Grande
# Embedded Systems and Pervasive Computing Lab.
#
# Contact: Mario Hozano Lucas de Souza <hozano@embedded.ufcg.edu.br>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#

"""
UI module is an abstraction layer atop Graphical Toolkits focused on
making simple applications easy to build while powerful in features.
"""

MAEMO_PLATAFORM = 0
DESKTOP_PLATAFORM = 1

def getPlataform():
    import platform
    if "arm" in platform.uname()[4]:
        return MAEMO_PLATAFORM
    else:
        return DESKTOP_PLATAFORM

# import easy;eagle ui aoi
if getPlataform() == MAEMO_PLATAFORM:
    from _maemo import *
else:
    from _desktop import *

# import memer ui api
from _memer import *